package com.atguigu.gmall.order;

import com.atguigu.gmall.common.anno.EnableFeignClientInterceptor;
import com.atguigu.gmall.common.anno.EnableThreadPoolExecutor;
import com.atguigu.gmall.common.rabbit.anno.EnableRabbitTemplate;
import com.atguigu.gmall.order.delay.OrderDelayTask;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication
@MapperScan(basePackages = "com.atguigu.gmall.order.mapper")
@EnableFeignClients(basePackages = {
        "com.atguigu.gmall.feign.user" ,
        "com.atguigu.gmall.feign.cart" ,
        "com.atguigu.gmall.feign.product" ,
        "com.atguigu.gmall.feign.ware"
})
@EnableFeignClientInterceptor
@EnableThreadPoolExecutor
@EnableScheduling
@EnableRabbitTemplate
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }

}
